package org.csu.code.api.service;

import org.csu.code.api.common.CommonResponse;
import org.csu.code.api.entity.Sentence;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface TalkService {
//    CommonResponse<List<Sentence>> getTalkList(String username);
//
//    CommonResponse<List<String>> getNameList();

    CommonResponse<String> insertSentence(HttpServletRequest request,Sentence sentence);

    //获取双方聊天记录
    CommonResponse<String> getTotalTalk(HttpServletRequest request,int toUerId);

}
